<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath() + "/";
%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=path%>" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<h3>用户信息</h3>

	<table width="800px" border="1">
		<tr>
			<th>id</th>
			<th>用户名</th>
			<th>手机号</th>
			<th>真实姓名</th>
		</tr>

		<c:forEach items="${pageInfo.list }" var="user">
			<tr>
				<td>${user.id }</td>
				<td>${user.username }</td>
				<td>${user.phone }</td>
				<td>${user.realname }</td>
			</tr>
		</c:forEach>

	</table>

	<a href="list?page=${pageInfo.prePage }">上一页</a> ${pageInfo.pageNum }/${pageInfo.pages }
	<a href="list?page=${pageInfo.nextPage }">下一页</a>

</body>
</html>